<page-header title="标签搜索" [breadcrumb]="breadcrumb" [action]="action" [action-group]="false" [back]="true">
  <ng-template #breadcrumb>
    <ql-breadcrumb separator="/">
      <ql-breadcrumb-item>客户管理</ql-breadcrumb-item>
      <ql-breadcrumb-item>客户标签</ql-breadcrumb-item>
      <ql-breadcrumb-item>标签搜索</ql-breadcrumb-item>
    </ql-breadcrumb>
  </ng-template>
  <ng-template #action>
    <!--<ql-button type="primary" (click)="onSubmit()">提交</ql-button>-->
  </ng-template>
</page-header>

<!--<ql-card title="基本信息">-->
  <!--<app-tag-create-customer></app-tag-create-customer>-->
<!--</ql-card>-->
<!--<ql-card title="分类信息">-->
  <!--<app-tag-create-customer></app-tag-create-customer>-->
<!--</ql-card>-->
<!--<ql-card title="管理信息">-->
  <!--<app-tag-create-customer></app-tag-create-customer>-->
<!--</ql-card>-->
<!--<ql-form [inline]="true">-->
  <!--<ql-card header="标签列表">-->
    <!--<data-table [model]="tagsList">-->
      <!--<ql-table-column model-key="customerno" label="标签Code"> </ql-table-column>-->
      <!--<ql-table-column model-key="usedname" label="标签名称"> </ql-table-column>-->
      <!--<ql-table-column model-key="sex" label="标签目录" width="80">-->
      <!--</ql-table-column>-->
      <!--<ql-table-column model-key="age" label="标签类别" width="80"> </ql-table-column>-->
      <!--<ql-table-column model-key="customertype" label="标签说明">-->
      <!--</ql-table-column>-->
    <!--</data-table>-->
  <!--</ql-card>-->
<!--</ql-form>-->

<page-container>
  <data-form [showReset]="false"  (submit)="onRefresh('select *')" [button]="button">
    <!-- <app-input-range [(ngModel)]="valuedata" formControlName="valuedata" unit="%"  minvalue="-0.69"  maxvalue="178"></app-input-range> -->
    <ql-form-item label="标签名称">
      <ql-input [(ngModel)]="tagname"></ql-input>
    </ql-form-item>
    <ql-form-item label="标签编码">
      <ql-input [(ngModel)]="tagcode"></ql-input>
    </ql-form-item>
    <ng-template #button>
      <ql-button size="small" type="primary" (click)="search()">高级搜索</ql-button>
    </ng-template>
  </data-form>
  <data-table [model]="tagsList"  [cursor]="cursorService" (cursor-change)="onRefresh()">
  <ql-table-column model-key="tagcode" label="标签编码"> </ql-table-column>
  <ql-table-column model-key="tagname" label="标签名称"> </ql-table-column>
  <ql-table-column model-key="customercount" label="客户数" width="80"> </ql-table-column>
  <ql-table-column model-key="tagtype" label="标签类别">
    <ng-template #slot let-scope="scope">
      {{scope.rowData.tagtype | dict:'tag_type'}}
    </ng-template>
  </ql-table-column>
  </data-table>
</page-container>
